//
//  LLTransition.m
//  TaoTuo
//
//  Created by admin on 2019/8/28.
//  Copyright © 2019 admin. All rights reserved.
//

#import "LLTransition.h"
#import "LLPresentAnimation.h"

@implementation LLTransition
{
    LLPresentAnimation *_animation;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        _animation = [[LLPresentAnimation alloc] init];
    }
    return self;
}

- (id<UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source
{
    _animation.isPresent = YES;
    return _animation;
}

- (id<UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed
{
    _animation.isPresent = NO;
    return _animation;
}

@end
